package com.qfedu.utils;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSourceFactory;
import org.apache.ibatis.datasource.unpooled.UnpooledDataSource;

import javax.sql.DataSource;

/**
 * @author:zhengyilong
 * @email:1797344574@qq.com
 * @phone:13479394730
 * @desc:
 * @DateTime:2022/4/28 15:44
 **/
public class DruidDataSourceFactory extends PooledDataSourceFactory {

    //将Mybatis的内置连接池Pooled的数据源修改成Druid的数据源
    public DruidDataSourceFactory() {
        this.dataSource = new DruidDataSource();
    }

}

